import Vue from 'vue'
import VueRouter from 'vue-router'
import About from '@/components/About.vue'
import Home from '@/components/Home.vue'

Vue.use(VueRouter)

//创建一个router，用于控制整个应用的路由规则
const router = new VueRouter({
	routes:[
		{
			path:'/about',
			component:About
		},
		{
			path:'/home',
			component:Home
		}
	]
})

export default router